import request from '@/utils/request'

// 查询压浆记录列表
export function listRecord(query) {
  return request({
    url: '/zhgd/record/recordList',
    method: 'get',
    params: query
  })
}

// 查询压浆记录详细
export function getRecord(id) {
  return request({
    url: '/zhgd/record/' + id,
    method: 'get'
  })
}

// 新增压浆记录
export function addRecord(data) {
  return request({
    url: '/zhgd/record',
    method: 'post',
    data: data
  })
}

// 修改压浆记录
export function updateRecord(data) {
  return request({
    url: '/zhgd/record',
    method: 'put',
    data: data
  })
}

// 删除压浆记录
export function delRecord(id) {
  return request({
    url: '/zhgd/record/' + id,
    method: 'delete'
  })
}

// 查询压浆结果列表  查询Echart图数据
export function listZnyj_result(query) {
  return request({
    url: '/zhgd/znyj_result/resultList',
    method: 'get',
    params: query
  })
}

// 查询压浆结果列表  查询Echart图数据
export function listEcharts_result(query) {
  return request({
    url: '/zhgd/znyj_result/statisticAnalysis',
    method: 'get',
    params: query
  })
}

// 查询压浆详情
export function getReportDetail(query) {
  return request({
    url: '/zhgd/znyj_result/reportDetail',
    method: 'get',
    params: query
  })
}

// 压浆报表编辑回显
export function getGroutingReportEdit(id) {
  return request({
    url: '/zhgd/groutingReportEdit/' + id,
    method: 'get'
  })
}

// 压浆报表编辑确定按钮
export function putGroutingReportEdit(data) {
  return request({
    url: '/zhgd/groutingReportEdit',
    method: 'put',
    data: data
  })
}



// 手动校验(老)
export function isQualifiedList(data) {
  return request({
    url: '/zhgd/nLaboratoryGroutingRequires/isQualifiedList',
    method: 'post',
    data: data
  })
}



// 手动校验(老) 压浆
export function handCheckGrouting(data) {
  return request({
    url: '/zhgd/nLaboratoryGroutingRequires/handCheck',
    method: 'post',
    data: data
  })
}


// 查询压浆过程列表
export function processData(data) {
  return request({
    url: '/zhgd/znyj_result/processData',
    method: 'get',
    params: data
  })
}
// 查询压浆过程列表echarts
export function processDataEcharts(data) {
  return request({
    url: '/zhgd/znyj_result/processDataEcharts',
    method: 'get',
    params: data
  })
}











